import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * 用户信息表
 */
@Entity('biz_customer_list', { comment: '用户信息表' })
export class BizCustomerListEntity extends BaseEntity {
  @Column({
    comment: '状态 0-禁用 1-正常',
    type: 'tinyint',
    default: 0,
  })
  status: number;

  @Column({ comment: '手机号', length: 20, default: '' })
  phone: string;

  @Column({ comment: '昵称', length: 50, default: '' })
  nickName: string;

  @Column({ comment: '头像', length: 200, default: '' })
  headPhoto: string;

  @Index({ unique: true })
  @Column({ comment: '微信OpenId', length: 50, default: '' })
  wechatOpenId: string;
}
